import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import type { App } from 'vue'

const store = createPinia()
store.use(piniaPluginPersistedstate)

export const setupPinia = (app: App) => {
    app.use(store)
}

export default store
